<!--
Integration as summation

GS LaTeX Code
$$$
\int_a^bf(x)dx = lim_{n\to\infty}\sum_{r=1}^nhf(a+rh)
$$$

$$$
\text{where} \quad h=\frac{b-a}{n}
$$$
-->

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <semantics>
        <mrow>
            <msubsup>
                <mo>∫</mo>
                <mi>a</mi>
                <mi>b</mi>
            </msubsup>
            <mi>f</mi>
            <mo stretchy="false">(</mo>
            <mi>x</mi>
            <mo stretchy="false">)</mo>
            <mi>d</mi>
            <mi>x</mi>
            <mo>=</mo>
            <mi>l</mi>
            <mi>i</mi>
            <msub>
                <mi>m</mi>
                <mrow>
                    <mi>n</mi>
                    <mo>→</mo>
                    <mi mathvariant="normal">∞</mi>
                </mrow>
            </msub>
            <munderover>
                <mo>∑</mo>
                <mrow>
                    <mi>r</mi>
                    <mo>=</mo>
                    <mn>1</mn>
                </mrow>
                <mi>n</mi>
            </munderover>
            <mi>h</mi>
            <mi>f</mi>
            <mo stretchy="false">(</mo>
            <mi>a</mi>
            <mo>+</mo>
            <mi>r</mi>
            <mi>h</mi>
            <mo stretchy="false">)</mo>
        </mrow>
        <annotation encoding="application/x-tex">\int_a^bf(x)dx = lim_{n\to\infty}\sum_{r=1}^nhf(a+rh)</annotation>
    </semantics>
</math>

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <semantics>
        <mrow>
            <mtext>where</mtext>
            <mspace width="1em"></mspace>
            <mi>h</mi>
            <mo>=</mo>
            <mfrac>
                <mrow>
                    <mi>b</mi>
                    <mo>−</mo>
                    <mi>a</mi>
                </mrow>
                <mi>n</mi>
            </mfrac>
        </mrow>
        <annotation encoding="application/x-tex">\text{where} \quad h=\frac{b-a}{n}</annotation>
    </semantics>
</math>